終端機顯示Cannot find module 'sass'


Posted by mijouhsieh on 2023-05-10

在做React 作業時,有scss檔案,但沒有安裝sass module。
助教在git clone後
助教的終端機出現 Cannot find module 'sass' (自己電腦下載專案並沒有顯示同狀況)
Cannot find module 'sass'
相關資料:
Cannot find module 'sass'

安裝 npm i sass --save-dev 就解決了


自己從github git clone 專案資料夾後則是
終端機出現
need-to-install-react-scripts.jpg

需要安裝 npm i react-scripts --save-dev
即可npm start ,顯示localhost:3000 專案畫面。


#Cannot find module 'sass' #sass module #react-scripts module







Related Posts

Airflow 動手玩系列文介紹

Airflow 動手玩系列文介紹

Find the winner of Tic-Tac-Toe

Find the winner of Tic-Tac-Toe

元件介紹-Day04 #  Props 向內層元件傳遞資料狀態

元件介紹-Day04 # Props 向內層元件傳遞資料狀態


Comments